import { createRouter, createWebHistory } from 'vue-router'
import Login from '@/views/login/index.vue'
import Test from '@/views/test/index.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: '首页',
      component: Login,
      redirect: '/'
    },
    {
      path: '/login',
      name: '登录',
      component: Login
    },
    {
      path: '/test',
      component: Test,
    }
  ]
})

export default router
